package com.sskj.mine.asset.data;

import com.sskj.lib.util.NumberUtil;

import java.util.List;

public class OtherAssetBean {


    /**
     * total : 22
     * list : [{"id":"9527","stockUserId":"187","stockCode":null,"money":-1.59,"moneyBefore":798900,"moneyAfter":798898.41,"detail":App.INSTANCE.getString(R.string.mineotherAssetBean1),"walletType":1,"type":13,"typeId":"43","createTime":1561345637000,"isDeleted":false,"timestamp":1561345703000},{"id":"9530","stockUserId":"187","stockCode":null,"money":-1.59,"moneyBefore":798900,"moneyAfter":798898.41,"detail":App.INSTANCE.getString(R.string.mineotherAssetBean1),"walletType":1,"type":13,"typeId":"45","createTime":1561347411000,"isDeleted":false,"timestamp":1561347477000},{"id":"9531","stockUserId":"187","stockCode":null,"money":-1.59,"moneyBefore":798900,"moneyAfter":798898.41,"detail":App.INSTANCE.getString(R.string.mineotherAssetBean1),"walletType":1,"type":13,"typeId":"46","createTime":1561347859000,"isDeleted":false,"timestamp":1561347924000}]
     * pageNum : 1
     * pageSize : 3
     * size : 3
     * startRow : 1
     * endRow : 3
     * pages : 8
     * prePage : 0
     * nextPage : 2
     * isFirstPage : true
     * isLastPage : false
     * hasPreviousPage : false
     * hasNextPage : true
     * navigatePages : 8
     * navigatepageNums : [1,2,3,4,5,6,7,8]
     * navigateFirstPage : 1
     * navigateLastPage : 8
     */

    private String total;
    private int pageNum;
    private int pageSize;
    private int size;
    private int startRow;
    private int endRow;
    private int pages;
    private int prePage;
    private int nextPage;
    private boolean isFirstPage;
    private boolean isLastPage;
    private boolean hasPreviousPage;
    private boolean hasNextPage;
    private int navigatePages;
    private int navigateFirstPage;
    private int navigateLastPage;
    private List<ListBean> list;
    private List<Integer> navigatepageNums;

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getStartRow() {
        return startRow;
    }

    public void setStartRow(int startRow) {
        this.startRow = startRow;
    }

    public int getEndRow() {
        return endRow;
    }

    public void setEndRow(int endRow) {
        this.endRow = endRow;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getPrePage() {
        return prePage;
    }

    public void setPrePage(int prePage) {
        this.prePage = prePage;
    }

    public int getNextPage() {
        return nextPage;
    }

    public void setNextPage(int nextPage) {
        this.nextPage = nextPage;
    }

    public boolean isIsFirstPage() {
        return isFirstPage;
    }

    public void setIsFirstPage(boolean isFirstPage) {
        this.isFirstPage = isFirstPage;
    }

    public boolean isIsLastPage() {
        return isLastPage;
    }

    public void setIsLastPage(boolean isLastPage) {
        this.isLastPage = isLastPage;
    }

    public boolean isHasPreviousPage() {
        return hasPreviousPage;
    }

    public void setHasPreviousPage(boolean hasPreviousPage) {
        this.hasPreviousPage = hasPreviousPage;
    }

    public boolean isHasNextPage() {
        return hasNextPage;
    }

    public void setHasNextPage(boolean hasNextPage) {
        this.hasNextPage = hasNextPage;
    }

    public int getNavigatePages() {
        return navigatePages;
    }

    public void setNavigatePages(int navigatePages) {
        this.navigatePages = navigatePages;
    }

    public int getNavigateFirstPage() {
        return navigateFirstPage;
    }

    public void setNavigateFirstPage(int navigateFirstPage) {
        this.navigateFirstPage = navigateFirstPage;
    }

    public int getNavigateLastPage() {
        return navigateLastPage;
    }

    public void setNavigateLastPage(int navigateLastPage) {
        this.navigateLastPage = navigateLastPage;
    }

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public List<Integer> getNavigatepageNums() {
        return navigatepageNums;
    }

    public void setNavigatepageNums(List<Integer> navigatepageNums) {
        this.navigatepageNums = navigatepageNums;
    }

    public static class ListBean {
        /**
         * id : 9527
         * stockUserId : 187
         * stockCode : null
         * money : -1.59
         * moneyBefore : 798900
         * moneyAfter : 798898.41
         * detail : 法币交易购买下单!
         * walletType : 1
         * type : 13
         * typeId : 43
         * createTime : 1561345637000
         * isDeleted : false
         * timestamp : 1561345703000
         */

        private String id;
        private String stockUserId;
        private String stockCode;
        private double money;
        private int moneyBefore;
        private double moneyAfter;
        private String detail;
        private int walletType;
        private int type;
        private String typeId;
        private long createTime;
        private boolean isDeleted;
        private long timestamp;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getStockUserId() {
            return stockUserId;
        }

        public void setStockUserId(String stockUserId) {
            this.stockUserId = stockUserId;
        }

        public String getStockCode() {
            return stockCode;
        }

        public void setStockCode(String stockCode) {
            this.stockCode = stockCode;
        }

        public String getMoney() {
            return NumberUtil.keepMax8(money);
        }

        public void setMoney(double money) {
            this.money = money;
        }

        public int getMoneyBefore() {
            return moneyBefore;
        }

        public void setMoneyBefore(int moneyBefore) {
            this.moneyBefore = moneyBefore;
        }

        public double getMoneyAfter() {
            return moneyAfter;
        }

        public void setMoneyAfter(double moneyAfter) {
            this.moneyAfter = moneyAfter;
        }

        public String getDetail() {
            return detail;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        public int getWalletType() {
            return walletType;
        }

        public void setWalletType(int walletType) {
            this.walletType = walletType;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getTypeId() {
            return typeId;
        }

        public void setTypeId(String typeId) {
            this.typeId = typeId;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public boolean isIsDeleted() {
            return isDeleted;
        }

        public void setIsDeleted(boolean isDeleted) {
            this.isDeleted = isDeleted;
        }

        public long getTimestamp() {
            return timestamp;
        }

        public void setTimestamp(long timestamp) {
            this.timestamp = timestamp;
        }
    }
}
